import styled from "styled-components";
import top from '../../../assets/images/top.png'
import down from '../../../assets/images/down.png'
import chose from '../../../assets/images/choes.png'
import abc from '../../../assets/images/default.png'
import up from '../../../assets/images/up.png'
import under from '../../../assets/images/under.png'

const ListWrapper =styled.div`
background-color: white;
overflow: hidden;
height:100%;
.am-drawer.am-drawer-right .am-drawer-draghandle {
    right: -1rem;
}
.am-drawer-draghandle{
    right: 0;
}
.am-drawer-sidebar{
    width: 3rem;
    height: 100%;
    overflow: hidden;
}
.am-drawer-open{
    display: block;

}
.am-drawer {
    top: .9rem;
}
.chose{
    border-top: 1px #eee solid;
    padding: .1rem .2rem;
    position: relative;
    z-index: 2; 
    /* background-color: pink; */
    ul{
        display: flex;
        justify-content: space-between;
        li{
            font-size: .15rem;
            img{
                width: .15rem;
                height: .15rem;
            }
        }
        .price{
            padding-right: .16rem;
            background:url(${top}) no-repeat right;
            background-size: .15rem .15rem;
        }
        .active{
            padding-right: .16rem;
            background:url(${down}) no-repeat right;
            background-size: .15rem .15rem;
        }
        .none{
            padding-right: .16rem;
            background:url(${abc}) no-repeat right;
            background-size: .15rem .15rem;
        }
        .color{
            color:#2EAEB7;
        }
        .choose{
            padding-right: .16rem;
            background:url(${chose}) no-repeat right;
            background-size: .15rem .15rem;
        }
    }
}
.product{
    height: 100%;
    overflow: hidden;
    .res{
        margin-top: .3rem;
        color: #ccc;
        font-size: .16rem;
        text-align: center;
    }
    .resActive{
       display:none;
    }
}
.my-active{
    display: none;
}
.dialog{
    height: calc(100% - .6rem);
    padding: .15rem .15rem .2rem .2rem;
    background-color: white;
    overflow-y: scroll;
    .activeborder{
        color: green;
    }
    .people{
        width: 100%;
        margin-bottom: .3rem;
        overflow: hidden;
        p{
            display: flex;
            justify-content: space-between;
           .peo{
                font-size: .2rem;
           }
            .both{
                font-size: .14rem;
                color: #ccc;
                padding-right: .2rem;
                background: url(${under}) no-repeat right .02rem;
                background-size: .15rem .15rem;
            }
        }
        .man{
            ul{
                width: 100%;
                height: 100%;
                li{
                    width: 31%;
                    float: left;
                    height: .4rem;
                    margin-right: .05rem;
                    line-height: .4rem;
                    margin-top: .1rem;
                    border: 1px solid #ccc;
                    flex: 1;
                    text-align: center;
                }
            }
        }
    }
    .price{
        margin-bottom: .4rem;
        h1{
            margin-bottom: .2rem;
            font-size: .18rem;
            font-weight: normal;
        }
        .input{
            width: 1rem;
            height: .3rem;
            border: 1px solid #eee;
        }
        input::-webkit-input-placeholder {
  /* WebKit browsers */
            color: #dddddd;
            text-align: center;
            font-size: .12rem;
        }
        span{
            color: #eee;
            margin: 0 .05rem 0 .05rem;
        }
    }
    .action{
        width: 100%;
        padding: .1rem ;
        background-color: white;
        position: fixed;
        z-index: 3;
        bottom: 0;
        left: 0;
        .reset{
            padding: .1rem .25rem;
            background-color:white ;
            border: 1px solid #eee;
            margin-right: .1rem;
        }
        .confirm{
            background-color: #01C2C3;
            padding: .1rem .8rem;  
            color: #fff;
            border: none;
        }
    }
}
.product{
    position: relative;
    z-index:1;
}

`

const DialogWrapper =styled.div`
  background-color: rgba(0, 0, 0, 0.5);

`
export{
    ListWrapper,
    DialogWrapper
}